package com.whmskj.xjlhsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhsc.entity.Shachangsbbanyield;
import com.whmskj.xjlhsc.mobie.index.entity.dto.XsTrendDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface ShachangsbbanyieldMapper extends BaseMapper<Shachangsbbanyield> {

    Map<String, Object> selectXsEnergy();

    Map<String, Object> selectMonthXsEnergy(@Param(value = "startTime") String startTime,
                                            @Param(value = "endTime") String endTime);

    List<XsTrendDto> selectXsTrend(@Param(value = "startTime") LocalDate startTime,
                                   @Param(value = "endTime") LocalDate endTime);

}
